<#compress>
    <@override name="title">会员设定</@override>
    <@override name="viewcss">
    <link href="${ctx}/static/scripts/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/scripts/plugins/bootstrap-modal/css/bootstrap-modal.css" rel="stylesheet" type="text/css"/>
    </@override>
    <@override name="viewbody">
    <div class="row">
        <div class="col-md-12">
            <h3 class="page-title">
                预定会员设置
                <small>预定会员设置.</small>
            </h3>
            <ul class="page-breadcrumb breadcrumb">
                <li>
                    <i class="fa fa-home"></i>
                    <a href="${ctx}/admin/home">
                        首页
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="${ctx}/admin/booking/dining">
                        餐饮品牌
                    </a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <a href="#">${brand.name!}品牌餐饮－预定会员设置 </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="portlet box grey">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="fa fa-reorder"></i>${brand.name!}的 预定会员设置
                    </div>
                </div>
                <div class="portlet-body">
                    <form action="${ctx}/admin/booking/dining/member_save" method="post" class="form-horizontal form-bordered">
                        <div class="form-body">
                            <input type="hidden" name="diningSetting.brand" value="${setting.brand!}">
                            <input type="hidden" name="diningSetting.id" value="${setting.id!}">

                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="dialy_degree">每日限定数量: <span class="required">*</span></label>
                                <div class="col-sm-9">
                                    <div class="spinner_el" id="spinner_dialy_degree">
                                        <div class="input-group input-xlarge">
                                            <div class="spinner-buttons input-group-btn">
                                                <button type="button" class="btn spinner-up blue">
                                                    <i class="fa fa-plus"></i>
                                                </button>
                                            </div>
                                            <input type="text" class="spinner-input form-control" id="dialy_degree" name="diningSetting.dialy_degree" value="${setting.dialy_degree!}" readonly>
                                            <div class="spinner-buttons input-group-btn">
                                                <button type="button" class="btn spinner-down red">
                                                    <i class="fa fa-minus"></i>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="diningSetting.oper">中南币操作: </label>
                                <div class="col-sm-9">
                                    <div class="radio-list">
                                        <label class="radio-inline">
                                            <input type="radio" name="diningSetting.oper" value="1" <#if setting.oper?? && setting.oper==1>checked </#if>> 增加
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="diningSetting.oper" value="0" <#if setting.oper?? && setting.oper==0>checked </#if>> 扣减
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="diningSetting.oper" value="-1" <#if setting.oper?? && setting.oper==-1>checked</#if>> 无
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label" for="currency">中南币: <span class="required">*</span></label>
                                <div class="col-sm-9">
                                    <div class="spinner_el" id="spinner_rule_currency">
                                        <div class="input-group input-xlarge">
                                            <div class="spinner-buttons input-group-btn">
                                                <button type="button" class="btn spinner-up blue">
                                                    <i class="fa fa-plus"></i>
                                                </button>
                                            </div>
                                            <input type="text" class="spinner-input form-control" id="currency" name="diningSetting.currency" value="${setting.currency!}" readonly>
                                            <div class="spinner-buttons input-group-btn">
                                                <button type="button" class="btn spinner-down red">
                                                    <i class="fa fa-minus"></i>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-actions fluid">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button type="submit" class="btn purple"><i class="fa fa-check"></i> 保存</button>
                                        <a href="${ctx}/admin/booking/dining" class="btn default"> <i class="fa  fa-arrow-circle-o-left"></i>返回</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
    </@override>

    <@override name="viewparams">
    g.brand = '${brand.id!}';
    </@override>
    <@override name="viewmodule">dining_setting</@override>
    <@extends name="../../_basic/main.ftl"></@extends>
</#compress>